import React from 'react'
import PubSub from 'pubsub-js'
export default function Son1() {
  return (
    <div>
      <h2>Son1</h2>
      <br />
      <button
        onClick={() => {
          // 发布消息
          PubSub.publish('fanfan', 'hello')
        }}
      >
        发布消息1
      </button>
    </div>
  )
}
